
package org.springxrsk.modules.signup.service.impl;

import org.springxrsk.modules.signup.pojo.entity.QyCardTypesEntity;
import org.springxrsk.modules.signup.pojo.vo.QyCardTypesVO;
import org.springxrsk.modules.signup.excel.QyCardTypesExcel;
import org.springxrsk.modules.signup.mapper.QyCardTypesMapper;
import org.springxrsk.modules.signup.service.IQyCardTypesService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 课卡类型 服务实现类
 *
 *  @author
 * @since 2024-06-19
 */
@Service
public class QyCardTypesServiceImpl extends BaseServiceImpl<QyCardTypesMapper, QyCardTypesEntity> implements IQyCardTypesService {

	@Override
	public IPage<QyCardTypesVO> selectQyCardTypesPage(IPage<QyCardTypesVO> page, QyCardTypesVO qyCardTypes) {
		return page.setRecords(baseMapper.selectQyCardTypesPage(page, qyCardTypes));
	}


	@Override
	public List<QyCardTypesExcel> exportQyCardTypes(Wrapper<QyCardTypesEntity> queryWrapper) {
		List<QyCardTypesExcel> qyCardTypesList = baseMapper.exportQyCardTypes(queryWrapper);
		//qyCardTypesList.forEach(qyCardTypes -> {
		//	qyCardTypes.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyCardTypes.getType()));
		//});
		return qyCardTypesList;
	}

}
